#include <iostream>
#include "request/add_contacts_request.pb.h"
#include "request/del_contacts_requext.pb.h"
#include "request/find_one_contacts_request.pb.h"
#include "response/response/add_contacts_response.pb.h"
#include "response/response/del_contacts_response.pb.h"
#include "response/response/find_all_contacts_response.pb.h"
#include "response/response/find_one_contacts_response.pb.h"

class ContactsServer
{
public:
    //新增联系人
    void add();
    //删除联系人
    void del();
    //查找联系人
    void find_one();
    //显示所有联系人
    void find_all();

private:
    //打印日志
    void buildAddContactRequest(add_contacts_req::AddContactsRequest* request);

    //针对find_one函数中对于查找到联系人之后该联系人的详细信息的具体输出操作
    void printFindOneContactResponse(find_one_contact_resp::FindOneContactResponse& response);

    //对应void ContactsServer::printAddContactRequest()函数中打印所有联系人的具体信息
    void printFindAllContactsResponse(find_all_contacts_resp::FindAllContactsResponse& response);
};